package com.tyut.springboottest.config;

import com.tyut.springboottest.domin.Student;
import com.tyut.springboottest.service.StudentService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {
    @Bean
    public StudentService studentService(Student student) {
        // 创建并返回一个 StudentService 实例
        return new StudentService(student);
    }
}